package org.raphaello.Prototype;


import java.util.HashMap;

import android.app.Activity;
import android.os.Bundle;

import org.raphaello.core.Primitive;
import org.raphaello.core.jobs.Job;
import org.raphaello.core.objects.Object;
import org.raphaello.core.states.State;
import org.raphaello.loader.Loader;
import org.raphaello.Prototype.RaphaelloView;

public class Raphaello extends Activity {
	
	private static RaphaelloView mView;
	private static Loader mLoader;
	
	/** Each primitive is identified by its unique Id. */
	public static HashMap<String, Primitive> mPrimitives = new HashMap<String, Primitive>();
	
	public static HashMap<String, Object> mObjects = new HashMap<String, Object>();
	public static HashMap<String, State> mStates = new HashMap<String, State>();
	public static HashMap<String, Job> mJobs = new HashMap<String, Job>();
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        // Loads the external XML file
        mLoader = new Loader(this, "setcolor.xml");
        
        mView = new RaphaelloView(this);
        setContentView(mView);
        
    }
    
    /** The getter function RaphaelloView */
    public static RaphaelloView getView() {
    	return mView;
    }
    
    public static Loader getLoader() {
    	return mLoader;
    }
    
}